from django.conf.urls import url

from . import views, views1, views_nfc


urlpatterns = [

    url(r'^login/$', views.CustomerUserViceLoginView.as_view()),
    url(r'^auth/$', views.CustomerUserViceAuthLoginView.as_view()),
    url(r'^ylx_auth/$', views.CustomerUserViceYLXAuthLoginView.as_view()),
    url(r'^check_mobile/$', views.CustomerUserModelViewSet.as_view({'get': 'check_mobile'})),
    url(r'^sms_codes/$', views.CustomerUserModelViewSet.as_view({'get': 'sms_codes'})),
    url(r'^info/$', views.CustomerUserModelViewSet.as_view({'get': 'info'})),
    url(r'^equity_data/$', views.CustomerUserModelViewSet.as_view({'get': 'equity_data'})),
    url(r'^synchronous_info/$', views.CustomerUserModelViewSet.as_view({'post': 'synchronous_info'})),
    url(r'^inviter_info/$', views.CustomerUserModelViewSet.as_view({'get': 'inviter_info'})),
    url(r'^bind_mobile/$', views.CustomerUserModelViewSet.as_view({'post': 'bind_mobile'})),
    url(r'^assignment/$', views.CustomerUserModelViewSet.as_view({'get': 'assignment'})),
    url(r'^everyday_sign_in/$', views.CustomerUserModelViewSet.as_view({'get': 'everyday_sign_in'})),
    url(r'^sign_in_history/$', views.CustomerUserModelViewSet.as_view({'get': 'sign_in_history'})),
    url(r'^agreement/$', views.CustomerUserModelViewSet.as_view({'post': 'agreement'})),
    url(r'^inviter_details/$', views.CustomerUserModelViewSet.as_view({'get': 'inviter_details'})),
    url(r'^upload_avatar/$', views.CustomerUserModelViewSet.as_view({'post': 'upload_avatar'})),
    url(r'^upload_img/$', views.CustomerUserModelViewSet.as_view({'post': 'upload_img'})),
    url(r'^id_card_auth/$', views.CustomerUserModelViewSet.as_view({'post': 'id_card_auth'})),
    url(r'^advertisement/$', views.CustomerUserModelViewSet.as_view({'get': 'advertisement'})),
    url(r'^eight_advertisement/$', views.CustomerUserModelViewSet.as_view({'get': 'eight_advertisement'})),
    url(r'^payment/$', views.BindCardOrderModelViewSet.as_view({'get': 'payment'})),
    url(r'^activity/$', views.BindCardOrderModelViewSet.as_view({'get': 'activity'})),
    url(r'^accept/$', views.BindCardOrderModelViewSet.as_view({'post': 'accept'})),
    url(r'^turnplate/$', views.BindCardOrderModelViewSet.as_view({'get': 'turnplate'})),
    url(r'^prize_draw/$', views.BindCardOrderModelViewSet.as_view({'get': 'prize_draw'})),
    url(r'^check_order/$', views.BindCardOrderModelViewSet.as_view({'get': 'check_order'})),
    url(r'^payment_psbc/$', views.BindCardOrderModelViewSet.as_view({'post': 'payment_psbc'})),
    url(r'^pay_activity/$', views.JoinCustomizeActivityModelViewSet.as_view({'get': 'list'})),
    url(r'^pay_activity/(?P<pk>\d+)/$', views.JoinCustomizeActivityModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^popup_pay_activity/$', views.JoinCustomizeActivityModelViewSet.as_view({'get': 'popup_pay_activity'})),
    url(r'^join_pay_activity/$', views.JoinCustomizeActivityModelViewSet.as_view({'post': 'join_pay_activity'})),
    url(r'^pay_activity_schedule/$', views.JoinCustomizeActivityModelViewSet.as_view({'get': 'pay_activity_schedule'})),
    url(r'^receive_reward/$', views.JoinCustomizeActivityModelViewSet.as_view({'post': 'receive_reward'})),
    url(r'^customizeactivity_limitmerchant_map/$', views.JoinCustomizeActivityModelViewSet.as_view({'get': 'customizeactivity_limitmerchant_map'})),
    url(r'^alidiscountcouponinfo/$', views.AliDiscountCouponInfoModelViewSet.as_view({'get': 'list'})),
    url(r'^alidiscountcouponinfo/(?P<pk>\d+)/$', views.AliDiscountCouponInfoModelViewSet.as_view({'get': 'retrieve', 'post': 'partial_update'})),
    url(r'^merchant_info/$', views.MerchantModelViewSet.as_view({'get': 'merchant_info'})),
    url(r'^check_shopkeeper/$', views.MerchantModelViewSet.as_view({'post': 'check_shopkeeper'})),
    url(r'^bind_shopkeeper/$', views.MerchantModelViewSet.as_view({'post': 'bind_shopkeeper'})),
    url(r'^business_district/$', views.MerchantModelViewSet.as_view({'get': 'business_district'})),
    # url(r'^alipay_district/$', views.MerchantModelViewSet.as_view({'get': 'alipay_district'})),
    url(r'^merchant/$', views.MerchantModelViewSet.as_view({'get': 'list'})),
    url(r'^merchant/(?P<pk>\d+)/$', views.MerchantModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^limit_customizeactivity/$', views.CustomizeActivityModelViewSet.as_view({'get': 'limit_customizeactivity'})),
    url(r'^limit_customizeactivity_detail/$', views.CustomizeActivityModelViewSet.as_view({'get': 'limit_customizeactivity_detail'})),
    url(r'^lucky_draw/$', views.CustomizeActivityModelViewSet.as_view({'get': 'lucky_draw'})),
    url(r'^claim_draw/$', views.CustomizeActivityModelViewSet.as_view({'post': 'claim_draw'})),
    url(r'^multi_millionaire/$', views.CustomizeActivityModelViewSet.as_view({'get': 'multi_millionaire'})),
    url(r'^throw_dice/$', views.CustomizeActivityModelViewSet.as_view({'get': 'throw_dice'})),
    url(r'^multi_millionaire_detail/$', views.CustomizeActivityModelViewSet.as_view({'get': 'multi_millionaire_detail'})),
    url(r'^customizeactivity/$', views.CustomizeActivityModelViewSet.as_view({'get': 'list'})),
    url(r'^customizeactivity/(?P<pk>\d+)/$', views.CustomizeActivityModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^recommend_activity/$', views.CustomizeActivityModelViewSet.as_view({'get': 'recommend_activity'})),
    url(r'^benben_customizeactivity/$', views.CustomizeActivityModelViewSet.as_view({'get': 'benben_customizeactivity'})),
    url(r'^benben_lucky_draw/$', views.CustomizeActivityModelViewSet.as_view({'get': 'benben_lucky_draw'})),
    url(r'^share_customizeactivity/$', views.CustomizeActivityModelViewSet.as_view({'get': 'share_customizeactivity'})),
    url(r'^share_lucky_draw/$', views.CustomizeActivityModelViewSet.as_view({'post': 'share_lucky_draw'})),
    url(r'^allow_couponbag/$', views.CustomizeActivityModelViewSet.as_view({'get': 'allow_couponbag'})),
    url(r'^receive_couponbag/$', views.CustomizeActivityModelViewSet.as_view({'post': 'receive_couponbag'})),
    url(r'^customizeactivityflipcards/$', views.CustomizeActivityFlipCARDSModelViewSet.as_view({'get': 'list'})),
    url(r'^customizeactivityflipcards/(?P<pk>\d+)/$', views.CustomizeActivityFlipCARDSModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^inviter/$', views.CustomerUserViceModelViewSet.as_view({'get': 'list'})),
    url(r'^get_ylx_jump_parameter/$', views.CustomerUserViceModelViewSet.as_view({'get': 'get_ylx_jump_parameter'})),
    url(r'^elect/$', views.NewYearsShoppingFestivalElectModelViewSet.as_view({'get': 'list'})),
    url(r'^elect/(?P<pk>\d+)/$', views.NewYearsShoppingFestivalElectModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^elect_product/$', views.NewYearsShoppingFestivalElectProductModelViewSet.as_view({'get': 'list'})),
    url(r'^elect_product/(?P<pk>\d+)/$', views.NewYearsShoppingFestivalElectProductModelViewSet.as_view({'get': 'retrieve', 'put': 'update'})),
    url(r'^leaderboard/$', views.NewYearsShoppingFestivalElectProductModelViewSet.as_view({'get': 'leaderboard'})),
    url(r'^elect_product_like/$', views.NewYearsShoppingFestivalElectProductLikeModelViewSet.as_view({'get': 'list'})),
    url(r'^address/$', views.CustomerUserViceAddressModelViewSet.as_view({'get': 'list', 'post': 'create'})),
    url(r'^address/(?P<pk>\d+)/$', views.CustomerUserViceAddressModelViewSet.as_view({'get': 'retrieve', 'put': 'update', 'delete': 'destroy'})),
    url(r'^aftersalereason/$', views.AfterSaleReasonModelViewSet.as_view({'get': 'list'})),
    url(r'^applicationform/$', views.AfterSaleApplicationFormModelViewSet.as_view({'get': 'list'})),
    url(r'^applicationform/(?P<pk>\d+)/$', views.AfterSaleApplicationFormModelViewSet.as_view({'get': 'retrieve', 'delete': 'destroy', 'put': 'update', 'post': 'partial_update'})),
    url(r'^deliver_goods/$', views.AfterSaleApplicationFormModelViewSet.as_view({'post': 'deliver_goods'})),
    url(r'^receive_goods_again/$', views.AfterSaleApplicationFormModelViewSet.as_view({'post': 'receive_goods_again'})),
    url(r'^express/$', views.ExpressModelViewSet.as_view({'get': 'list'})),
    url(r'^express/(?P<pk>\d+)/$', views.ExpressModelViewSet.as_view({'delegette': 'retrieve'})),
    url(r'^choices_expresstype/$', views.ExpressTypeModelViewSet.as_view({'get': 'choices_expresstype'})),
    url(r'^expresstype/$', views.ExpressTypeModelViewSet.as_view({'get': 'list'})),


    url(r'^allow_coupon_wyh/$', views1.AliDiscountCouponModelViewSet.as_view({'get': 'allow_coupon_wyh'})),
    url(r'^retrieve_coupon_wyh/$', views1.AliDiscountCouponModelViewSet.as_view({'post': 'retrieve_coupon_wyh'})),
    url(r'^allow_coupon_equity/$', views1.AliDiscountCouponModelViewSet.as_view({'get': 'allow_coupon_equity'})),
    url(r'^retrieve_coupon_equity/$', views1.AliDiscountCouponModelViewSet.as_view({'post': 'retrieve_coupon_equity'})),
    url(r'^five_nineteen/$', views1.AliDiscountCouponModelViewSet.as_view({'get': 'five_nineteen'})),
    url(r'^five_nineteen_retrieve/$', views1.AliDiscountCouponModelViewSet.as_view({'post': 'five_nineteen_retrieve'})),
    url(r'^allow_merchant/$', views1.AliDiscountCouponModelViewSet.as_view({'get': 'allow_merchant'})),
    url(r'^allow_merchant_map/$', views1.AliDiscountCouponModelViewSet.as_view({'get': 'allow_merchant_map'})),
    url(r'^alidiscountcoupon/$', views1.AliDiscountCouponModelViewSet.as_view({'get': 'list'})),
    url(r'^alidiscountcoupon/(?P<pk>\d+)/$', views1.AliDiscountCouponModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^level/$', views1.LevelModelViewSet.as_view({'get': 'list'})),
    url(r'^activity_city/$', views1.LevelModelViewSet.as_view({'get': 'activity_city'})),
    url(r'^order/$', views1.OrderInfoModelViewSet.as_view({'get': 'list', 'post': 'create'})),
    url(r'^order/(?P<pk>\d+)/$', views1.OrderInfoModelViewSet.as_view({'get': 'retrieve', 'post': 'partial_update', 'delete': 'destroy', 'put': 'update'})),
    url(r'^preferential/$', views1.OrderInfoModelViewSet.as_view({'post': 'preferential'})),
    url(r'^preferential_voucher/$', views1.OrderInfoModelViewSet.as_view({'post': 'preferential_voucher'})),
    url(r'^receive_goods/$', views1.OrderInfoModelViewSet.as_view({'post': 'receive_goods'})),
    url(r'^update_address/$', views1.OrderInfoModelViewSet.as_view({'post': 'update_address'})),
    url(r'^group_data/$', views1.OrderInfoModelViewSet.as_view({'get': 'group_data'})),
    url(r'^group_share_pic/$', views1.OrderInfoModelViewSet.as_view({'post': 'group_share_pic'})),
    url(r'^sd_use_store/$', views1.OrderInfoModelViewSet.as_view({'get': 'sd_use_store'})),
    url(r'^goods/$', views1.GoodsModelViewSet.as_view({'get': 'list'})),
    url(r'^goods/(?P<pk>\d+)/$', views1.GoodsModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^goods_area/$', views1.GoodsModelViewSet.as_view({'get': 'goods_area'})),
    url(r'^goods_area1/$', views1.GoodsModelViewSet.as_view({'get': 'goods_area1'})),
    url(r'^cashactivitydata/$', views1.CashActivityDataModelViewSet.as_view({'get': 'list'})),
    url(r'^cashactivitydata/(?P<pk>\d+)/$', views1.CashActivityDataModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^bank_allow_cash/$', views1.CashActivityDataModelViewSet.as_view({'get': 'bank_allow_cash'})),
    url(r'^bank_receive_cash/$', views1.CashActivityDataModelViewSet.as_view({'post': 'bank_receive_cash'})),
    url(r'^ordergoods/$', views1.OrderGoodsModelViewSet.as_view({'get': 'list'})),
    url(r'^ordergoods/(?P<pk>\d+)/$', views1.OrderGoodsModelViewSet.as_view({'get': 'retrieve', 'put': 'update'})),
    url(r'^comment_file/$', views1.OrderGoodsModelViewSet.as_view({'post': 'comment_file'})),
    url(r'^comment/$', views1.OrderGoodsModelViewSet.as_view({'post': 'comment'})),
    url(r'^goodscomment/$', views1.GoodsCommentModelViewSet.as_view({'get': 'list'})),
    url(r'^scoutthestoreleaderboard/$', views1.ScoutTheStoreLeaderboardModelViewSet.as_view({'get': 'list'})),

    url(r'^nfc_quest/$', views_nfc.NFCDeviceBountyQuestModelViewSet.as_view({'get': 'list'})),
    url(r'^nfc_quest/(?P<pk>\d+)/$', views_nfc.NFCDeviceBountyQuestModelViewSet.as_view({'put': 'update', 'get': 'retrieve'})),
    url(r'^nfc_quest_map/$', views_nfc.NFCDeviceBountyQuestModelViewSet.as_view({'get': 'nfc_quest_map'})),
    url(r'^accredit_subscription/$', views_nfc.NFCDeviceBountyQuestModelViewSet.as_view({'post': 'accredit_subscription'})),
    url(r'^nfc_schedule/$', views_nfc.NFCDeviceBountyQuestScheduleModelViewSet.as_view({'get': 'list'})),
    url(r'^nfc_schedule/(?P<pk>\d+)/$', views_nfc.NFCDeviceBountyQuestScheduleModelViewSet.as_view({'get': 'retrieve', 'delete': 'destroy', 'put': 'update', 'post': 'partial_update'})),
    url(r'^draw_down_quest/$', views_nfc.NFCDeviceBountyQuestScheduleModelViewSet.as_view({'post': 'draw_down_quest'})),
    url(r'^underway_quest_count/$', views_nfc.NFCDeviceBountyQuestScheduleModelViewSet.as_view({'get': 'underway_quest_count'})),

]